import App from '../App'
import Home from '../page/Home'
import Hotstop from '../page/Science/Hotstop'
import Topic from '../page/Science/Topic'
import Live from '../page/Science/Live'
import Login from '../page/Login'
import Pediatric from '../page/Drug/Pediatric'
import Wife from '../page/Drug/Wife'
import Service from '../page/Answer/Service'
import Enquiry from '../page/Answer/Enquiry'
const routes = [
    {
        from: "/",
        to: "/login"
    },
    {
        path: '/app',
        component: App,
    },
    {
        path: '/home',
        component: Home,
        children: [
            {
                path: '/home/hotstop',
                component: Hotstop,
                meta: {
                    author: ["管理员", "用户"],
                    name: '热点'
                }
            },
            {
                path: '/home/topic',
                component: Topic,
                meta: {
                    author: ["管理员", "用户"],
                    name: '话题'
                }
            },
            {
                path: '/home/live',
                component: Live,
                meta: {
                    author: ["管理员", "用户"],
                    name: '生活'
                }
            },
            {
                path: '/home/pediatric',
                component: Pediatric,
                meta: {
                    author: ["管理员", "用户"],
                    name: '儿科'
                }
            },
            {
                path: '/home/wife',
                component: Wife,
                meta: {
                    author: ["管理员", "用户"],
                    name: '妇科'
                }
            },
            {
                path: '/home/service',
                component: Service,
                meta: {
                    author: ["管理员", "用户"],
                    name: '客服'
                }
            },
            {
                path: '/home/enquiry',
                component: Enquiry,
                meta: {
                    author: ["管理员", "用户"],
                    name: '问询'
                }
            },
        ]
    },
    {
        path: '/login',
        component: Login,
    }
]


export default routes